<template>
  <div>
    <el-button v-has="edit" type="primary" @click="d">编辑1</el-button>
  </div>
</template>

<script>

export default {
  name: 'List',
  data() {
    return {
      edit: 'goods_update'
    }
  },
  created() {
  },
  methods: {
    d() {
      console.log(11)
      this.$router.push({ path: './goods/edit' })
      // setTimeout(res=>{
      // console.log(this.$store.getters.permission)
      // },1000)
    }
  }
}
</script>

<style lang="css" scoped>

</style>
